package com.dmlll.dao;

import com.dmlll.pojo.Township;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TownshipMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Township record);

    int insertSelective(Township record);

    Township selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Township record);

    int updateByPrimaryKey(Township record);

    //根据县编号查全部镇
    List<Township>selectTownship(@Param("code") String code);

    String selectCodeByName(@Param("name")String name,@Param("countyCode")String countyCode);
}